package com.zone.infrastructure.persistent.dao;

import com.zone.infrastructure.persistent.po.RaffleActivitySku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: zongzi
 * @description: TODO
 * @date: 2024/6/29
 */
@Mapper
public interface IRaffleActivitySkuDao {

    RaffleActivitySku get(@Param("sku") Long sku);

    void decrActivitySkuCountSurplus(@Param("sku") Long sku);

    void clearZeroActivitySkuCount(@Param("sku") Long sku);

    List<RaffleActivitySku> queryActivitySkuListByActivityId(@Param("activityId") Long activityId);
}
